/**
 * 路由拦截器
 * [description]
 * @param  {[type]} router [description]
 * @return {[type]}        [description]
 */

import mode from '@/api/config.js'
export default function(router) {
  router.beforeEach((to, from, next) => {
    document.title = mode.titleText
    next()
  })
}
